// @Software: serve
// @File : sys_dictionary
// @Author : vince
// @Time : 2021/9/25 11:22
// @Description  请填写文件描述
package router

import (
	v1 "gintify/api/v1"
	"github.com/gin-gonic/gin"
)

func RegisterDictionaryRouter(Router *gin.RouterGroup){
	// 用户控制器
	c := v1.NewDictionaryController()

	// 用户路由组
	r := Router.Group("/dicts")
	{
		r.POST("", c.Post)
		r.GET("", c.GetList)
		r.GET("/:id", c.Get)
		r.PUT("/:id", c.Put)
		r.PATCH("/:id", c.Patch)
		r.DELETE("/:id", c.Delete)
	}
}